describe('practice-3-6', function () {

    it("获取1~1000之间的阿姆斯特朗数", function () {
        var arr_armstrong_number = get_armstrong_number();
        for(var i = 0; i < arr_armstrong_number.length; i ++)
        {
            var str_armstrong_number = arr_armstrong_number[i].toString();
            var sum = 0;
            for(var j = 0;j < str_armstrong_number.length;j ++)
            {
                sum += Math.pow(parseInt(str_armstrong_number[j]),3);
            }
            console.info('sum:'+sum+'===>armstrong_number:'+arr_armstrong_number[i]);
            expect(sum).toBe(arr_armstrong_number[i]);
        }
    });

});